﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data.SqlClient;
using System.Configuration;

namespace MuaChungDAO
{
    public class NguoiKetNoi
    {
        public static SqlConnection ketNoi(string connectionStringName)
        {
            SqlConnection conn = new SqlConnection();
            conn.ConnectionString = ConfigurationManager.ConnectionStrings[connectionStringName].ToString();
            conn.Open();
            return conn;
        }
    }
}
